Ensure that some folder contents are shown in
the list when we leave search mode.
https://bugzilla.gnome.org/show_bug.cgi?id=743659
if (g_value_get_boolean (value))
operation_mode_set (impl, OPERATION_MODE_SEARCH);
else
- operation_mode_set (impl, OPERATION_MODE_BROWSE);
+ {
+ operation_mode_set (impl, OPERATION_MODE_BROWSE);
+ if (priv->current_folder)
+ change_folder_and_display_error (impl, priv->current_folder, FALSE);
+ else
+ switch_to_home_dir (impl);
+ }
break;
case GTK_FILE_CHOOSER_PROP_ACTION: